i = 1
while i <= 5:
    j = 1
    while j <= i:
        print("*", end='')
        j += 1
    print()
    i += 1
i = 1
while i <= 4:
    j = 4
    while i <= j:
        print("*", end='')
        j -= 1
    print()
    i += 1